package com.xiaour.spring.boot.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: liushijiang
 * @Desc:
 * @create: 2025-06-18 14:37
 **/
@RestController
//@RefreshScope   //SpringCloud原生注解 支持Nacos的动态刷新功能
public class ConfigClientController {

//    @Value("${config.info}")
    private String configInfo="123";

    @GetMapping("/config/info")
    public String getConfigInfo(){
        return configInfo;
    }
}
